package com.stormrage.entity.learn;

import java.io.Serializable;
import java.util.Date;

public class LeaStudent implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 1246059315158387875L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer acctId;

	private Integer bunchId;

	private Date applyDate;

	private Integer locked;

	// ------------------------------- Fields -------------------------------

	public LeaStudent() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAcctId() {
		return acctId;
	}

	public void setAcctId(Integer acctId) {
		this.acctId = acctId;
	}

	public Integer getBunchId() {
		return bunchId;
	}

	public void setBunchId(Integer bunchId) {
		this.bunchId = bunchId;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaStudent instance(Integer acctId, Integer bunchId, Date applyDate, Integer locked) {
		LeaStudent entity = new LeaStudent();
		entity.setAcctId(acctId);
		entity.setBunchId(bunchId);
		entity.setApplyDate(applyDate);
		entity.setLocked(locked);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " acctId - " + acctId + " bunchId - " + bunchId + " applyDate - "
				+ applyDate + " locked - " + locked;
	}

}
